/*
 * @Author: kanglang
 * @Date: 2020-11-23 11:38:07
 * @LastEditors: kanglang
 * @LastEditTime: 2021-05-19 10:36:33
 * @Description: 三方登录方式
 */
import React from 'react';
import { StyleSheet, Text, TouchableOpacity } from 'react-native';
import { px2dp } from '@/styles';

const CheckWay = ({
  submit,
  loginWay = '密码登录',
  style
}) => {
  const handleMeth = () => {
    submit && submit();
  };
  return (
    <TouchableOpacity
      style={[styles.btnCheckWayStyle, style]}
      onPress={handleMeth}
    >
      <Text style={styles.loginText}>{loginWay}</Text>
    </TouchableOpacity>
  );
};
export default CheckWay;

const styles = StyleSheet.create({
  btnCheckWayStyle: {
    justifyContent: 'center',
    alignItems: 'center',
    width: px2dp(640),
    height: px2dp(96),
    borderRadius: 8,
    marginTop: px2dp(10),
  },
  loginText: {
    color: '#BA914A',
    fontSize: px2dp(32)
  },
});
